package com.spring.demo3.factory;

import org.springframework.stereotype.Indexed;

import java.lang.annotation.*;

/**
 * 另外三个注解@Repository,@Service,@Controller都通过@AliasFor来给@Component的value设置值
 */
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Indexed
public @interface MyComponent {
    String value() default "";
}
